<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class NewBookRecommend extends Model
{
    protected $table='new_book_recommend';
    
    protected $casts = [
        'extra' => 'json',
    ];

    public function product()
    {
        return $this->belongsTo(Product::class, 'pid', 'id');
    }
}
